<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">

<xi:include href="master.html" />

<head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
    <title>Create new profile</title>
    <link rel="stylesheet" type="text/css" media="screen" href="${tg.url('/static/css/style.css')}" />
    <link rel="stylesheet" type="text/css" media="screen" href="/js/themes/steel/grid.css" />
  	<link type="text/css" href="/js/theme/ui.all.css" rel="Stylesheet" />	
 	
  
  
</head>

<body>
<script type="text/javascript">
//<![CDATA[
jQuery(document).ready(function(){ 
  $("#birthdate").datepicker({dateFormat: 'dd/mm/yy',showOn: 'button', buttonImage: '/images/calendar.gif', buttonImageOnly: true})
  $("#ui-datepicker-div").css("z-index",5000);
  

}); 
//]]>
</script>
 <form class="ui-widget-content ui-corner-all" style="padding: 10px" method="post" action="./create">
 	<h3>If you want you can fill some details about you:</h3>
    <table>
    <tr><td>First name:</td><td><input class="ui-widget-content ui-corner-all" type="text" name="firstname" value="${tmpl_context.form_values.get('firstname')}"/><span class="fielderror">&nbsp;${tmpl_context.form_errors.get('firstname')}</span></td></tr>
    <tr><td>Middle name:</td><td><input class="ui-widget-content ui-corner-all" type="text" name="middlename" value="${tmpl_context.form_values.get('middlename')}"/><span class="fielderror">&nbsp;${tmpl_context.form_errors.get('middlename')}</span></td></tr>
    <tr><td>Last name:</td><td><input class="ui-widget-content ui-corner-all" type="text" name="lastname" value="${tmpl_context.form_values.get('lastname')}"/><span class="fielderror">&nbsp;${tmpl_context.form_errors.get('lastname')}</span></td></tr>
    <tr><td>Birth date:</td><td><input class="ui-widget-content ui-corner-all" type="text" id="birthdate" name="birthdate" value="${tmpl_context.form_values.get('birthdate')}"/><span class="fielderror">&nbsp;${tmpl_context.form_errors.get('birthdate')}</span></td></tr>
    </table>
    
    <button id="submit" class=".ui-state-hover ui-corner-all " type="submit" >create profile</button>
    </form>
    
</body>
</html>
